//
// Created by Dong on 2022/4/4.
//

import SwiftUI

struct UserElementsView: View {
    var body: some View {
        NavigationView {
            List {
                NavigationLink {
                    UseText()
                } label: {
                    Text("文本: 输入&输出")
                }
                NavigationLink {
                    UseImage()
                } label: {
                    Text("图片")
                }

                NavigationLink {
                    UseControl()
                } label: {
                    Text("控件")
                }

                NavigationLink {
                    Shapes()
                } label: {
                    Text("形状")
                }
            }
            .navigationBarTitle("用户界面元素")
        }
    }
}

struct UserElementsView_Previews: PreviewProvider {
    static var previews: some View {
        UserElementsView()
    }
}
